/**
 * 配置文件
 */
let httpUrl = ''
// #ifdef H5
httpUrl = '/api/'
// #endif


const isWeixinBrowser = () => {
    let ua = navigator.userAgent.toLowerCase();
    return /micromessenger/.test(ua) ? true : false;
}

export const HTTP_URL = httpUrl;
export const SSM_URL = httpUrl
let siteInfo = {}
export const SITE_INFO = siteInfo

export const CHANNEL_ID = 3
export const changeSiteIdFn = (s) => {
    if(s) {
        siteInfo.id = s
    }
}

export const OSS_PATH = {
}

